<div class="t_2">
     <div class="fl">发票信息修改</div>
     <div class="fr add_form"><a href="javascript:;" id="add_table"></a></div>
</div>
<div class="order_show" id="info_form">
     <form id="post_form">
     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table">
            <tr>
                <td class="td1" width="15%">名称：</td>
                <td><input type="text" name="name" value="<?=$this->fapiao['name']?>" /></td>
            </tr>
            <!--<tr>
                <td class="td1" width="15%">抬头：</td>
                <td><input type="text" name="tt" value="<?=$this->fapiao['tt']?>" /></td>
            </tr>-->
            <tr>
                <td class="td1" width="15%">内容：</td>
                <td><input type="text" name="nr" value="<?=$this->fapiao['nr']?>"/></td>
            </tr>
            <tr>
                <td class="td1" colspan="2" style="text-align:center">
					<input type="submit" value="提交" />
					<input type="hidden" name="act" value="modi"/>
				</td>
            </tr>
	</table>
	</form>
</div>
<script>
$(function(){
	$('#post_form').submit(function(){
		$.post(location.href,$(this).serialize(),function(data){
			alert(data.message);
			if (data.state == 1)
			{
				window.location.href = '?app=customer&mod=fapiao&customer_id=<?=$_GET['customer_id']?>';
			}
		},'json');
		return false;
	});
});
</script>
     